#include "gconsos.h"
#include "connexionbdd.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QCoreApplication::setOrganizationName("AEENSAMANGERS");
    QCoreApplication::setOrganizationDomain("AEENSAMANGERS.com");
    QCoreApplication::setApplicationName("ostofub");

    // Connexion à la base
    int idConnection = ConnexionBDD::connexion(0, "Moderateur");

    if(idConnection < 0){
        QMessageBox::warning(0,"Erreur",QString::number(idConnection));
        return 0;

    }

    GConsos w(0);
    w.show();

    return a.exec();
}
